﻿#include "pch.h"
#include "login/ptct2c_loginchallenge.h"
#include "session/sessionmanager.h"
#include "clientlink.h"

// generate by ProtoGen at date: 2014/8/14 15:25:29

void PtcT2C_LoginChallenge::Process(UINT32 dwConnID)
{
    SessionType newSessionID = SessionManager::Instance()->GetSession(dwConnID);
    PtcT2C_LoginChallenge challengePtc;
 	challengePtc.m_Data.set_challenge("hello");
 	challengePtc.m_Data.set_session(newSessionID);
 	if (!CClientLink::Instance()->Send(dwConnID, challengePtc))
 	{
 		LogWarn("send challenge to client failed!");
 	}
}
